<h4><a href="<?php echo base_url().'/siam/lihat-presensi.html'?>">DATA PERKULIAHAN</a> &raquo; <span class="current_page">CEK PRESENSI KULIAH</span></h4>

            <!-- Begin three column window -->
<div class="onecolumn" style="padding-bottom:20px">
    <?php if($presensiData != NULL): ?>
    <div class="header">
    <span>PRESENSI KULIAH</span>
	</div>  <?php endif; ?>
	<br class="clear"/>


<div class="text">
<br />
<div align="left" style="margin-left:35px">
   <?php if($presensiData && $presensiDataNim): ?>
   <div class="data_mhs">
     <table class="uiTableList" cellpadding="5" cellspacing="0" border="0">
     <form method="post">
     <tbody>
       <tr align="left">
         <td><b>Matakuliah</b></td>
         <td>:</td>
         <td width="361" ><?php echo $presensiDataNim->NAMA_MK ?></td>
       </tr>
       <tr align="left">
		  <td><b>Kode MK</b></td>
          <td>:</td>
          <td><?php echo $presensiDataNim->KODE_MK ?></td>
	   </tr>
       <tr align="left">
		  <td><b>Kelas</b></td>
          <td>:</td>
          <td><?php echo $presensiDataNim->KELAS ?></td>
	   </tr>
       <tr align="left">
		  <td><b>Dosen</b></td>
          <td>:</td>
          <td><?php echo $presensiDataNim->DOSEN ?><?php echo ($presensiDataNim->GELAR_DOSEN)? ', '.$presensiDataNim->GELAR_DOSEN:'' ?></td>
	   </tr>
       </tbody>
       </form>
      </table>
   </div>
   <br />
   <table class="data">
            <tr class="font_white" bgcolor="#000000" align="center">
                <th <?php if($presensiDataNim->ABSEN > 0): ?>rowspan="2"<?php endif ?> width="40">No.</th>
                <th <?php if($presensiDataNim->ABSEN > 0): ?>rowspan="2"<?php endif ?> width="210">Nama</th>
                <th <?php if($presensiDataNim->ABSEN > 0): ?>colspan="<?php echo $presensiDataNim->ABSEN ?>"<?php endif ?> height="40">Pertemuan</th>
            </tr>
            <?php if($presensiDataNim->ABSEN > 0): ?>
            <tr class="font_white" bgcolor="#000000" align="center">
                <?php for($i=1;$i<=$presensiDataNim->ABSEN;$i++): ?>
                <th width="30"><?php echo $i ?></th>
                <?php endfor; ?>
            </tr>
            <?php endif ?>
            <?php $seq_number = 1; ?>
            <?php foreach($presensiData as $value1): ?>
            <tr>
              <td align="right" style="padding-right:5px"><?php echo $seq_number ?></td>
              <td align="left" height="25" style="padding-left:10px"><?php echo $value1->MAHASISWA ?></td>

              <?php for($j=1;$j<=$presensiDataNim->ABSEN;$j++): ?>
                <?php $pertemuan = 'HARI_'.$j;?>
                <td align="center">
                   <?php if($value1->$pertemuan == 1):?>
                   <img src="<?php echo site_url('images/tick.png') ?>" align="top" />
                   <?php elseif($value1->$pertemuan == 0): ?>
                   <img src="<?php echo site_url('images/cross.png') ?>" align="top" />
                   <?php endif; ?>
                </td>
              <?php endfor; ?>

            </tr>
            <?php $seq_number++; ?>
            <?php endforeach; ?>
    </table>
    <?php echo br(2) ?>
    <div align="center">
    <a title="Klik untuk kembali" class="auiButton" href="<?php echo base_url().'siam/lihat-presensi.html' ?>" role="button"><img src="<?php echo base_url().'images/back.png' ?>" align="top" style="border:none" /> <span class="uiButton">Kembali</span></a>
    </div>
    <?php else: ?>
    <table class="data" width="100%">
     <tbody>
       <tr>
         <td>
         <div style="width:500px">
          <div id="p_messages_error">
            Data tidak ditemukan.
          </div>
         </div>
         </td>
       </tr>
     </tbody>
     </table>
    <?php endif; ?>
</div>

<br />

</div>
</div>